package com.shequan.activity.dao;

import com.shequan.activity.bean.pojo.ActivityNews;

public interface ActivityNewsDAO {
    int deleteByPrimaryKey(Integer activityNewsId);

    int insert(ActivityNews record);

    int insertSelective(ActivityNews record);

    ActivityNews selectByPrimaryKey(Integer activityNewsId);

    int updateByPrimaryKeySelective(ActivityNews record);

    int updateByPrimaryKeyWithBLOBs(ActivityNews record);

    int updateByPrimaryKey(ActivityNews record);

	/**
	 * 根据用户ID查询所属所有社圈未关闭活动的最新一条动态
	 * @param userId
	 * @return
	 */
	ActivityNews selectLatestNewsByUserId(int userId);
}